// user.js
import request from '../Util/axios/request.js';
// 获取社区图片
export function getCommunityImg(data) {
  return request.get('/community/getCommunityImg', data);
}

// 获取社区详情
export function getCommunityById(data) {
  return request.get('/community/getCommunityById', data);
}

// 获取社区评论列表
export function getCommentsByCommunityId(data) {
  return request.get('/comComment/getCommentsByCommunityId', data);
}
//新增评论接口
export function insertComment(data) {
  return request.post('/comComment/insertComment', data);
}
// 点赞相关接口
export function incrementLikesCount(data) {
  return request.get('/comComment/incrementLikesCount', data);
}
// 取消点赞相关接口
export function decrementLikesCount(data) {
  return request.get('/comComment/decrementLikesCount', data);
}


// 获取用户点赞的映射关系
export function getUserLikeComment(data) {
  return request.get('/comComment/getUserLikeComment', data);
}

export function getCommunityAddress(data) {
  return request.get('/community/getCommunityAddress', data);
}


